cishu = int(input("请输入随机次数："))
a = 1
for green in range(0,7):
  for red in range(0,4):
    for yello in range(0,4):
      if red + yello + green == 8:
          print("第%d次选择：红色%d个，黄色%d个，绿色%d个"%(a,red,yello,green))
          a += 1
          if a == cishu + 1 :
             exit()

